/**
 * 浏览器工作流 - 内容脚本样式
 * 用于页面中注入的元素样式
 */

/* 通知样式 */
.browser-work-notification {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  background: #4CAF50 !important;
  color: white !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
  z-index: 10000 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  transition: all 0.3s ease !important;
  max-width: 300px !important;
  word-wrap: break-word !important;
  border: none !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.browser-work-notification:hover {
  transform: translateX(-5px) !important;
}

/* 高亮元素样式（仅边框，无其他效果） */
.browser-work-highlight {
  outline: 2px solid #ff6b6b !important;
  outline-offset: 1px !important;
  transition: none !important; /* 禁用过渡动画，避免闪烁冲突 */
}

/* 确保高亮样式的最高优先级 */
*[style*="outline"].browser-work-highlight {
  outline: inherit !important;
}

/* 防止其他样式覆盖高亮效果 */
.browser-work-highlight[data-original-outline] {
  outline: 2px solid #ff6b6b !important;
}

/* 清理状态时确保样式完全移除 */
.browser-work-highlight-clearing {
  outline: none !important;
  transition: none !important;
}

/* 工具提示样式 */
.browser-work-tooltip {
  position: absolute !important;
  background: rgba(0, 0, 0, 0.8) !important;
  color: white !important;
  padding: 6px 10px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
  z-index: 10001 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.browser-work-tooltip:before {
  content: '' !important;
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  border: 4px solid transparent !important;
  border-top-color: rgba(0, 0, 0, 0.8) !important;
}

/* 浮动工具栏样式 */
.browser-work-toolbar {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  background: white !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
  z-index: 10000 !important;
  padding: 10px !important;
  display: flex !important;
  gap: 8px !important;
  border: 1px solid #e0e0e0 !important;
}

.browser-work-toolbar-btn {
  padding: 8px 12px !important;
  border: none !important;
  border-radius: 4px !important;
  background: #f5f5f5 !important;
  color: #333 !important;
  font-size: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
}

.browser-work-toolbar-btn:hover {
  background: #e0e0e0 !important;
}

.browser-work-toolbar-btn.active {
  background: #667eea !important;
  color: white !important;
}

/* 遮罩层样式 */
.browser-work-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.browser-work-modal {
  background: white !important;
  border-radius: 8px !important;
  padding: 24px !important;
  max-width: 500px !important;
  width: 90% !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important;
  position: relative !important;
}

.browser-work-modal h3 {
  margin: 0 0 16px 0 !important;
  font-size: 18px !important;
  color: #333 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
}

.browser-work-modal p {
  margin: 0 0 16px 0 !important;
  line-height: 1.5 !important;
  color: #666 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
}

.browser-work-modal-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  background: none !important;
  border: none !important;
  font-size: 20px !important;
  cursor: pointer !important;
  color: #999 !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.browser-work-modal-close:hover {
  color: #333 !important;
}

/* 加载动画 */
.browser-work-loading {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  border: 2px solid #f3f3f3 !important;
  border-top: 2px solid #667eea !important;
  border-radius: 50% !important;
  animation: browser-work-spin 1s linear infinite !important;
  margin-right: 8px !important;
}

@keyframes browser-work-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 避免与网站样式冲突 */
.browser-work-notification,
.browser-work-tooltip,
.browser-work-toolbar,
.browser-work-overlay,
.browser-work-modal {
  all: initial !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
} 